package com.hgxd.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hgxd.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author fsd
 * @since 2023-10-18
 */
@Getter
@Setter
@ToString
@TableName("sys_menu")
@ApiModel(value = "SysMenu对象", description = "菜单表")
public class SysMenu extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
    @TableId(value = "menu_id", type = IdType.AUTO)
    private Long menuId;

    @ApiModelProperty("所属上级")
    private Long parentId;

    @ApiModelProperty("菜单名")
    private String title;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("类型(0:目录,1:菜单,2:按钮)")
    private Integer type;

    @ApiModelProperty("路由地址")
    private String path;

    @ApiModelProperty("组件路径")
    private String component;

    @ApiModelProperty("权限标识")
    private String perms;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("重定向")
    private String redirect;

    @ApiModelProperty("元信息")
    private String meta;

    @ApiModelProperty("排序")
    private Integer sortValue;

    @ApiModelProperty("状态(0:禁止,1:正常)")
    private Integer status;

    @ApiModelProperty(value = "是否选中 0：选中 1：未选中")
    private Boolean isSelect;

    @ApiModelProperty(value = "孩子")
    @TableField(exist = false)
    private List<SysMenu> children;



}
